/**
 * @author:cloud.lg
 * @date:2021.3.26
 * @description:这里主要包含后台接口的定义
 * @module decl 报关制单
 */
 import {get, post, fetch } from '../fetch'

// 获取报关制单列表
export const getDeclMakeList = (params) => fetch('/business/decl/make/list', params, 'query', 'get');

// 创建报关单
export const createDeclMake = (params) => fetch('/business/decl/create', params, 'query', 'post');

// 删除报关单
export const delMake = (params) => fetch('/business/decl/make/del', params, 'form', 'post');

// 生成委托编码
export const makeDelegationCode = (params) => fetch('/business/decl/make/makeDelegationCode', params, 'query', 'post');

// 填充境外收货人英文名
export const randOverseasConsignorName = (params) => fetch('/business/decl/make/randOverseasConsignorName', params, 'query', 'get');

// 保存报关单
export const saveMake = (params, query) => fetch('/business/decl/make/save?declId='+query.declId+'&makeType='+query.makeType, params, 'form', 'post');

// 获取报关单模板
export const getCsbasecommonAll = (params) => fetch('/csbasecommon/params/all', params, 'query', 'get');

// 推送报关单
export const pushMake = (params) => fetch('/business/decl/make/push', params, 'form', 'post');

// 逻辑检查报关单
export const checkMake = (params) => fetch('/business/decl/make/check', params, 'form', 'post');

// 根据贸易方式查询报关单模板
export const getMaketplAll = (params) => fetch('/base/maketpl/all', params, 'query', 'get');

// 复制报关单
export const makeCopy = (params) => fetch('/business/decl/make/copy', params, 'form', 'post');